home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / ups.xml < prev    next >
Text File  |  2002-09-27  |  3KB  |  77 lines

  1. <search function="ups">
  2.   <name>Track UPS Packages</name>
  3.   <description>Track UPS packages by tracking number (up to 20):
  4.   <div class="helpboxDescLabels">Example:</div> 
  5.   <table class="helpboxDescTable">
  6.     <tr>
  7.       <td>ups [tracking#1], [tracking#2]</td>
  8.     </tr>
  9.   </table>
  10.   </description>
  11.   <category>Shipping</category>
  12.   <link>http://www.ups.com/tracking/tracking.html</link>
  13.   <contributor>Glenn Carr</contributor>
  14.   <idea>stickyc's buddy</idea>
  15.   <form name="upsf"
  16.         action="http://wwwapps.ups.com/etracking/tracking.cgi"> 
  17.     <input type="hidden" name="tracknums_displayed"/>
  18.     <input type="hidden" name="TypeOfInquiryNumber" value="T"/>
  19.     <input type="hidden" name="HTMLVersion" value="4.0"/>
  20.     <input type="hidden" name="sort_by" value="status"/>
  21.     <input type="hidden" name="InquiryNumber1"/>
  22.     <input type="hidden" name="InquiryNumber2"/>
  23.     <input type="hidden" name="InquiryNumber3"/>
  24.     <input type="hidden" name="InquiryNumber4"/>
  25.     <input type="hidden" name="InquiryNumber5"/>
  26.     <input type="hidden" name="InquiryNumber6"/>
  27.     <input type="hidden" name="InquiryNumber7"/>
  28.     <input type="hidden" name="InquiryNumber8"/>
  29.     <input type="hidden" name="InquiryNumber9"/>
  30.     <input type="hidden" name="InquiryNumber10"/>
  31.     <input type="hidden" name="InquiryNumber11"/>
  32.     <input type="hidden" name="InquiryNumber12"/>
  33.     <input type="hidden" name="InquiryNumber13"/>
  34.     <input type="hidden" name="InquiryNumber14"/>
  35.     <input type="hidden" name="InquiryNumber15"/>
  36.     <input type="hidden" name="InquiryNumber16"/>
  37.     <input type="hidden" name="InquiryNumber17"/>
  38.     <input type="hidden" name="InquiryNumber18"/>
  39.     <input type="hidden" name="InquiryNumber19"/>
  40.     <input type="hidden" name="InquiryNumber20"/>
  41.   </form>
  42.   <script><![CDATA[
  43.     function ups(q)
  44.     {
  45.       if( nullArgs("ups", q) )
  46.         return false;
  47.  
  48.       if (q == "")
  49.         openSearchWindow("http://www.ups.com/tracking/tracking.html");
  50.       else
  51.       {
  52.         if (result = q.split( /\s*,+\s*/ ) )
  53.         {
  54.           for ( var i = 1; i <= 20; i++ ) {
  55.             if (i <= result.length) {
  56.               track = result[i - 1];
  57.             } else {
  58.               track = "";
  59.             }
  60.             track = track.replace(/\W/g,"");
  61.             eval( "document.upsf.InquiryNumber" + i + ".value='" + track + "';" );
  62.           }
  63.     
  64.           document.upsf.tracknums_displayed.value = result.length;
  65.           submitForm(upsf);
  66.         }
  67.       }
  68.     }
  69.   ]]></script>
  70.  
  71.   <copyright>
  72.     Copyright (c) 2002 David Bau
  73.     Distributed under the terms of the
  74.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  75.   </copyright>
  76. </search>
  77.